from django.conf import  settings
import hashlib

def md5(str):
    obj=hashlib.md5(settings.SECRET_KEY.encode('utf-8'))
    obj.update(str.encode('utf-8'))
    return obj.hexdigest()